package com.hzgj.bcl.soa.cicada;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class AsyncCompletionHandlerBase<T> implements AsyncHandler<T> {
    private final Logger log = LoggerFactory.getLogger(AsyncCompletionHandlerBase.class);

    @Override
    public T onCompleted(T response) throws Exception {
        return response;
    }

    @Override
    public void onThrowable(Throwable t) {
        log.debug(t.getMessage(), t);
    }
}